package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IUserRoleDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.UserRole;
import com.ricchieri.service.interf.IUserRoleService;

@Transactional(readOnly = true)
public class UserRoleService implements IUserRoleService, Serializable {
	private static final long serialVersionUID = -1003070213032082194L;
	IUserRoleDao userRoleDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<UserRole> getAllUserRole() {
		BasicFilter filter = new BasicFilter();
		return userRoleDao.getAllUserRole(filter);
	}

	public IUserRoleDao getUserRoleDao() {
		return userRoleDao;
	}

	public void setUserRoleDao(IUserRoleDao userRoleDao) {
		this.userRoleDao = userRoleDao;
	}
}
